﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CollegeWebsite.Controllers
{
    public class Common
    {
     public string CreateCaptcha(string value)
     {
         int hash = 5381;
         value = value.ToUpper();
         for (int i = 0; i < value.Length; i++)
         {
             hash = ((hash << 5) + hash) + value[i];
         }
         return hash.ToString();
     }
    

    }
}
